const { override, fixBabelImports,addWebpackAlias } = require('customize-cra');
const path = require('path')

function pathResolve ( pathUrl ) {
  return path.join( __dirname, pathUrl )
}

module.exports = override(
  fixBabelImports('import', {
    libraryName: 'antd-mobile',
    style: 'css',
  }),
  /*
    ! 配置路径别名
  */
 addWebpackAlias({
  //  别名： 绝对路径
  '@': pathResolve( './src' ),
 })

);